import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import local_set from '@feidao/web/atom/browser/local/set';
import local_get from '@feidao/web/atom/browser/local/get';


export default async function (fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const fz = await local_get(fd, 'fz');
	if (fz) {
		fd.data.node.querySelector('[data-feidao-information]').classList.add('display-n');
		await local_set(fd, 'fz', false);
	} else {
		fd.data.node.querySelector('[data-feidao-information]').classList.remove('display-n');
		await local_set(fd, 'fz', true);
	}
}
